$(function(){
 $.ajax({
    method:'get',
    url:'http://124.223.14.236:8060/index/index',
    success:function({data}){
        console.log(data);
        console.log(data.showBanner);

        data.showBanner.map((item)=>{
            console.log(item);
            let {advimgdesc,advimglink,advimgsrc} = item
            return `
        <li>
          <div class="pic">
            <img src="./static//images/default.png" alt="">
          </div>
          <p class="desc">满100元优惠90优惠券</p>
          <div class="action-box">
            <div class="time">0天1时22分30秒200</div>
            <button class="active">立即抢购</button>
          </div>
        </li>
            `
        }).join('')
    }
 })


})